#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int i, arr[10], positive = 0, negative = 0;
    for (i = 0; i < 10; i++)
    {
        scanf("%d", &arr[i]);
        if (arr[i] > 0)
            positive++;
        else if (arr[i] < 0)
            negative++;
        else
        {
        }
    }
    printf("%d\n", positive);
    printf("%d\n", negative);
    return 0;
}



